const Home = () => import( /* webpackChunkName: 'demot' */ "../pages/Home")

const New = () => import( /* webpackChunkName: 'demot' */ "../pages/New")
const Search = () => import( /* webpackChunkName: 'demot' */ "../pages/Search")
const Er = () => import( /* webpackChunkName: 'demot' */ "../components/Search_son/03.vue")
import index from "../xt/index"
import about from "../xt/about"
import personal from "../xt/personal"
import jiaoyibao from "../xt/jiaoyibao"
import zhuangxiu from "../xt/zhuangxiu"
import Vue from "vue";
import VueRouter from "vue-router";
import Getails from '@/pages/Getails';
Vue.use(VueRouter);
let routes = [{
        path: "/",
        redirect: "/Home"
    },
    {
        path: "/Home",
        component: Home,

    },
    // {
    //     path: "/index",
    //     component: index,

    // },
    {
        path: "/New",
        component: New
    },
    {
        path: "/Getails/:id",
        component: Getails,
        props: true
    },
    {
        path: "/Search",
        component: Search,

    },
    {
        path: "/index",
        component: index
    }, {
        path: "/about",
        component: about
    }, {
        path: "/personal",
        component: personal
    }, {
        path: "/jiaoyibao",
        component: jiaoyibao
    },
    {
        path: "/zhuangxiu",
        component: zhuangxiu
    }
]

export default new VueRouter({
    routes,
});